package com.yunhe.log.domain.data;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;
import java.sql.Time;
import java.util.Date;

/**
 * 系统日志对象
 * @desc 系统日志对象定义
 * @author liuronglei
 */
@ApiModel(value = "SystemMonitorLog", description = "系统日志对象")
@Entity
@Table(name = "data_system_monitor_log")
public class SystemMonitorLog {

    @ApiModelProperty(value = "ID")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;
    @ApiModelProperty(value = "电站ID")
    @Column(name = "station_id")
    private Long stationId;
    @ApiModelProperty(value = "日期")
    @Column(name = "date")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;
    @ApiModelProperty(value = "时间")
    @Column(name = "time")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private Time time;
    @ApiModelProperty(value = "日志类型ID")
    @Column(name = "type_code")
    private Long typeId;
    @ApiModelProperty(value = "日志类型")
    @Column(name = "type_title")
    private String type;
    @ApiModelProperty(value = "日志内容")
    @Column(name = "content")
    private String content;

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getStationId() {
        return stationId;
    }

    public void setStationId(Long stationId) {
        this.stationId = stationId;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Time getTime() {
        return time;
    }

    public void setTime(Time time) {
        this.time = time;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
